<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">公众号设置</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Qrcode/editWeixinSub')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                <input type="hidden" name="supplier_id" value="{$supplier_id}">
                <!-- 商品ID -->
                <input type="hidden" name="goods_id" value="{$goods_id}">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>公众号设置</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            
                             <tr>
                                 <th width="15%"><i class="require-red">*</i>公众号名称</th>
                               <td>
                                    <input type="text" value="{$data.wxname}"  style='width: 70%' datatype="*" nullmsg="请填写公众号名称" errormsg="请填写公众号名称"  name="wxname" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red">*</i>APPID</th>
                               <td>
                                    <input type="text" value="{$data.appid}" style='width: 70%' datatype="*" nullmsg="请填写APPID" errormsg="请填写APPID"  name="appid" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red">*</i>appsecret</th>
                               <td>
                                    <input type="text" value="{$data.appsecret}" style='width: 70%' datatype="* " nullmsg="请填写appsecret" errormsg="请填写appsecret"  name="appsecret" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>红包状态</th>
                               <td>
                                   <input type="radio" name="hongbaostat" checked="true" <if condition="$data.hongbaostat eq 1 ">checked='true' </if>   value='1' id="">开启
                                   <input type="radio" name="hongbaostat" id="" <if condition="$data.hongbaostat eq 0 ">checked='true' </if> value='0'>关闭
                                   <span style='color:red;margin-left: 10px;'>红包开启后,上面所设的参数会生效</span>
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>上传广告图片</th>
                               <td id="btn">
                                  <ul id="ul_pics" class="ul_pics clearfix"></ul>
                    <a href="" id='img_pic_h' target="_blank"><img id='img_pic_d'  <if condition="$data.imgurl neq '' ">src="{$data.imgurl}"</if> src="__PUBLIC__/images/rwlx_pic11.png" class="WU_cgrw_sctp1" width="120" height="120" /></a>
                                  <div class="WU_cgrw_sctp2Box " >上传图片</div>
                            <input type="hidden" name="img_url" value="{$data.imgurl}">
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>描述</th>
                               <td>
                                    <textarea name='miaoshu' style="width: 70%;height: 150px;">
                                      {$data.miaoshu}
                                    </textarea>
                               </td>
                                 
                            </tr>
                           
                            

                            <tr>
                                 <th width="15%"><i class="require-red"></i>开启引导关注</th>
                               <td>
                                   <input type="radio" name="ydgzhu" checked="true" <if condition="$data.ydgzhu eq 1 ">checked='true' </if>  value='1' id="">开启
                                   <input type="radio" name="ydgzhu" id="" <if condition="$data.ydgzhu eq 0 ">checked='true' </if> value='0'>关闭 
                                  <span style='color:red;margin-left: 10px;'>开启后,上面所设的参数会生效</span>
                                   
                               </td>
                                 
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                  
                                    <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                    <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                </td>
                            </tr>

                            </tbody></table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>
<script type="text/javascript" src="__PUBLIC__/plupload/plupload.full.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/btn.js"></script>
<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>